import VueRouter from "vue-router";
import Vue from "vue";
import DenLu from "@/views/DenLu.vue";
import Zhuce from "@/views/Zhuce.vue";
import loyout from "@/views/loyout.vue";
import Mianjin from "@/views/Mianjin.vue";
import Dianzan from "@/views/Dianzan.vue";
import Shouchang from "@/views/Shouchang.vue";
import Wode from "@/views/Wode.vue";
import tuijian from "@/views/tuijian.vue";
import Zuixin from "@/views/zuixin.vue";

Vue.use(VueRouter);
const router = new VueRouter({
  routes: [
    {
      path: "/",
      redirect: "/denlu",
    },
    {
      path: "/denlu",
      component: DenLu,
    },
    {
      path: "/zhuce",
      component: Zhuce,
    },
    {
      path: "/loyout",
      component: loyout,
      children: [
        {
          path: "/loyout/mianjin",
          component: Mianjin,
          children: [
            {
              path: "/loyout/mianjin/tuijian",
              component: tuijian,
            },
            {
              path: "/loyout/mianjin/zuixin",
              component: Zuixin,
            },
          ],
        },
        {
          path: "/loyout/shouchang",
          component: Shouchang,
        },
        {
          path: "/loyout/dianzan",
          component: Dianzan,
        },
        {
          path: "/loyout/wode",
          component: Wode,
        },
      ],
    },
  ],
  linkActiveClass: "hh",
});
export default router;
